package com.pinapel.aixml.ui.editors;

import java.awt.BorderLayout;

import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea;
import org.fife.ui.rsyntaxtextarea.SyntaxConstants;
import org.fife.ui.rtextarea.RTextScrollPane;

public class EditorSemanticMode extends GenericTextViewEditor{

	private static final long serialVersionUID = 201204161857L;
	private RTextScrollPane theScroll;

	public EditorSemanticMode(){
		this.setLayout(new BorderLayout());
		
		this.mText = new RSyntaxTextArea();

		this.mText.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_XML);
		this.mText.setCodeFoldingEnabled(true);
		this.mText.setAntiAliasingEnabled(true);

		this.theScroll = new RTextScrollPane(this.mText);
		this.theScroll.setFoldIndicatorEnabled(true);
		this.theScroll.setViewportView(mText);
		this.add(theScroll);
	}
}
